﻿@model Pager<SysIntroduce>
@{
	ViewBag.Title = "会员介绍信列表";
	var interviewdate = (Request["InterviewDate"] ?? ",").Split(',');
	//var clientbirthday = (Request["ClientBirthday"] ?? ",").Split(',');
}
<div class="ui-widget-header">
	<div style="padding: 5px 10px; font-size: 120%">
		@ViewBag.Title
	</div>
</div>
@using (Ajax.BeginForm(null,new AjaxOptions { UpdateTargetId = "Main" }))
{
	<div class="ui-cell ui-cell-full">
		<label>公司编号</label>
		@Html.TextBox("CompanySysNo",Request["CompanySysNo"])
	</div>
	<div class="ui-cell">
		<label>公司名称</label>
		@Html.TextBox("CompanyCaption", Request["CompanyCaption"], new { @class = "l" })
	</div>
	<div class="ui-cell">
		<label>公司地址</label>
		@Html.TextBox("CompanyAddress",Request["CompanyAddress"], new { @class = "l" })
	</div>
	<div class="ui-cell">
		<label>联系人</label>
		@Html.TextBox("CompanyContact",Request["CompanyContact"])
	</div>
	<div class="ui-cell">
		<label>手机</label>
		@Html.TextBox("CompanyMobile",Request["CompanyMobile"])
	</div>
	<div class="ui-cell">
		<label>面试日期从</label>
		<input type="text" id="InterviewDateF" name="InterviewDate" value="@interviewdate[0]" class="s" />
		<span>到</span>
		<input type="text" id="InterviewDateT" name="InterviewDate" value="@interviewdate[1]" class="s" />
	</div>
	<div class="ui-cell ui-cell-full">
		<label>用户编号</label>
		@Html.TextBox("ClientSysNo",Request["ClientSysNo"])
	</div>
	<div class="ui-cell">
		<label>会员名称</label>
		@Html.TextBox("ClientName",Request["ClientName"])
	</div>
	<div class="ui-cell">
		<label>会员性别</label>
		@Html.TextBox("ClientSex",Request["ClientSex"])
	</div>
	@*<div class="ui-cell">
		<label>出生日期从</label>
		<input type="text" id="ClientBirthdayF" name="ClientBirthday" value="@clientbirthday[0]" class="s" />
		<span>到</span>
		<input type="text" id="ClientBirthdayT" name="ClientBirthday" value="@clientbirthday[1]" class="s" />
	</div>*@
	<div class="ui-cell">
		<label>电话</label>
		@Html.TextBox("ClientPhone",Request["ClientPhone"])
	</div>
	<div class="ui-cell">
		<label>学历</label>
		@Html.TextBox("ClientEducation",Request["ClientEducation"])
	</div>
	<div class="ui-cell">
		<label>工种</label>
		@Html.TextBox("ClientWork",Request["ClientWork"])
	</div>
	<div class="ui-cell">
		<label>工龄</label>
		@Html.TextBox("ClientWorkExpress",Request["ClientWorkExpress"])
	</div>
	<div class="ui-cell-bar">
		<input class="btn" type="submit" value="查找" />
		@Ajax.ActionLink("添加", "Edit", null, new AjaxOptions { UpdateTargetId = "Main" }, new { @class = "btn" })
	</div>
}
<div class="ui-data">
	<table>
		<thead>
			<tr>
				<td colspan="13">@Html.Partial("Pager", Model)</td>
			</tr>
			<tr>
				<th>公司名称</th> 
				<th>公司地址</th> 
				<th>联系人</th> 
				<th>手机</th> 
				<th>面试日期</th> 
				<th>会员名</th> 
				<th>会员生日</th> 
				<th>籍贯</th> 
				<th>电话</th> 
				<th>学历</th> 
				<th>工种</th> 
				<th>工龄</th> 
				<th>操作</th> 
			</tr>
		</thead>
		<tbody>
			@foreach (var row in Model)
   {
			<tr>
				<td>@Html.DisplayFor(p=>row.CompanyCaption)</td>
				<td style="width:180px;">@Html.DisplayFor(p=>row.CompanyAddress)</td>
				<td>@Html.DisplayFor(p=>row.CompanyContact)</td>
				<td>@Html.DisplayFor(p=>row.CompanyMobile)</td>
				<td>@string.Format("{0:yyyy-MM-dd}",row.InterviewDate)</td>
				<td>@Html.DisplayFor(p=>row.ClientName)</td>
				<td>@string.Format("{0:yyyy-MM-dd}",row.ClientBirthday)</td>
				<td>@Html.DisplayFor(p=>row.ClientBirthplace)</td>
				<td>@Html.DisplayFor(p=>row.ClientPhone)</td>
				<td>@Html.DisplayFor(p=>row.ClientEducation)</td>
				<td>@Html.DisplayFor(p=>row.ClientWork)</td>
				<td>@Html.DisplayFor(p=>row.ClientWorkExpress)</td>
				<td>
					@Ajax.ActionLink("[修改]", "Edit", new { ID = row.ID }, new AjaxOptions { UpdateTargetId = "Main" })
					@Html.ActionLink("[打印]", "Print", new { ID = row.ID, auto = true }, new { @class = "print" })
				</td>
			</tr>
   }
			<tr>
				<td colspan="13">@Html.Partial("Pager", Model)</td>
			</tr>
		</tbody>
	</table>
</div>
<script type="text/javascript">
	setTimeout(function () {
		calendar("InterviewDateF"),calendar("InterviewDateT");
	},0);
</script>